# -*- coding: utf-8 -*-

from PyQt4.QtGui import QMainWindow
from main_window_ui import Ui_MainWindow
from PyQt4.QtCore import SIGNAL, SLOT, pyqtSignature
from add_item import AddItem

class MainWindow(QMainWindow, Ui_MainWindow):
	def __init__(self):
		QMainWindow.__init__(self)
		self.setupUi(self)
		self.connect(self.actionIncluir_Item, SIGNAL('activated()'), \
						self, SLOT('openAddItem()'))
						
		
	@pyqtSignature("")
	def openAddItem(self):
		frmAddItem = self.mdiArea.addSubWindow(AddItem())
		frmAddItem.show()
